package com.vr.caricature.common;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.vr.caricature.fenlei.VideoFragment;

import java.util.List;

/**
 * Created by chengxiaozhi on 2016/11/3.
 */

public class VideoPageAdapter extends FragmentPagerAdapter {

    private int size;


    public VideoPageAdapter(FragmentManager fm,int size) {
        super(fm);
        this.size = size;
    }

    @Override
    public Fragment getItem(int position) {
        return VideoFragment.newInstance(position);
    }

    @Override
    public int getCount() {
        return size;
    }
}
